package com.ruoyi.comparison.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 同一条关联关系上的节点信息业务对象 task_subject_list
 *
 * @author ruoyi
 * @date 2023-11-18
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class TaskSubjectListBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;
    private String subjectId;
    private String searchKey1;
    private String searchKey2;
    /**
     * 节点Id
     */
    @NotBlank(message = "节点Id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String nodeId;

    /**
     * 节点的主体主键
     */
    @NotBlank(message = "节点的主体主键不能为空", groups = { AddGroup.class, EditGroup.class })
    private String keyNo;

    /**
     * 节点的主体名称
     */
    @NotBlank(message = "节点的主体名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    private Date createTime;
}
